ComponentOne Data Source for Entity Framework
C1.LiveLinq.Indexing Namespace / SubindexCollection<T> Class / Contains Method / Contains<TKey>(Expression<Func<T,TKey>>) Method
The type of the subindex key.
Key selector expression of a subindex, see KeySelector.

In This Topic
    Contains<TKey>(Expression<Func<T,TKey>>) Method
    In This Topic
    Determines whether a subindex with the specified key selector exists in the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function Contains(Of TKey)( _
       ByVal keySelector As System.Linq.Expressions.Expression(Of Func(Of T,TKey)) _
    ) As System.Boolean
    public System.bool Contains<TKey>( 
       System.Linq.Expressions.Expression<Func<T,TKey>> keySelector
    )

    Parameters

    keySelector
    Key selector expression of a subindex, see KeySelector.

    Type Parameters

    TKey
    The type of the subindex key.

    Return Value

    true if a subindex with the specified key selector is found in the collection; otherwise, false.
    See Also